<?php
/**
 * 模拟bcs服务
 * @author yaoli<yaoli@pateo.com.cn>
 * @version 1.0  
 */
class vms extends ActionBase1 {
	
	function init() {
	
	}
	
	/**
	 * 动作
	 *
	 * @see AActionBase::action()
	 */
	public function action() {
		
	}
	public function getVehicleInfo(){
		echo '{
    "VehicleInfo": {
        "enrolled": true,
        "color": "color1",
        "license": "鄂GB3345",
        "brand": "brand1",
        "remark": "ssssss",
        "insuranceCompany": "ping an",
        "insuranceNo": "12345",
        "models": "标致508",
        "car": "2012款标致508"
    },
    "status": {
        "code": 200,
        "description": "成功"
    }
}';	
	}
	public function updateVehicle(){
		echo '{
    "status": {
        "code": "200",
        "description": "Server is successful, returns a response。"
    }
}
';
	}
	
	public function getService(){
		//  /*--此处的siblingIds表示serviceId为2和3的service与serviceId为1的service必须同时开通或者关闭*/
		echo '{"ServiceInfo":{"services":[{"serviceId":"1","serviceName":"车况报告服务","description":"勾选开启为开启车况服务，取消为关闭车况报告服务。","active":true,"serviceType":"1001","siblingIds":"2,3"},{"serviceId":"2","serviceName":"环保驾驶服务","description":"勾选开启为环保驾驶服务，取消为关闭环保驾驶服务。","active":false,"serviceType":"1002","siblingIds":"1,3"},{"serviceId":"3","serviceName":"保养提醒服务","description":"勾选开启为保养提示服务，取消为关闭保养提示服务。","active":false,"serviceType":"1002","siblingIds":"1,2"}]}}';	
	}
}